package com.sskj.gocoin.m.bean;

import com.sskj.common.util.SPUtil;
import com.sskj.gocoin.utils.TimeFormatUtil;
import com.sskj.lib.SPConfig;

import java.util.Date;

public class FabiPublishListBean {


    /**
     * chu_account : 384115
     * gou_account : 384119
     * order_num : 15306231258586805287
     * add_time : 1530623125
     * type : 2
     * price : 20.00
     * total_num : 5.0000
     * total_price : 100.00
     * sxfee : 0.0000
     * status : 5
     */

    private String chu_account;
    private String gou_account;
    private String order_num;
    private String add_time;
    private String type;
    private String price;
    private String total_num;
    private String total_price;
    private String sxfee;
    private String status;

    public boolean isBuyer() {
        String account = SPUtil.get(SPConfig.ACCOUNT, "");
        if (account.equals(gou_account)) {
            return true;
        }
        return false;
    }

    public String getChu_account() {
        return chu_account;
    }

    public void setChu_account(String chu_account) {
        this.chu_account = chu_account;
    }

    public String getGou_account() {
        return gou_account;
    }

    public void setGou_account(String gou_account) {
        this.gou_account = gou_account;
    }

    public String getOrder_num() {
        return order_num;
    }

    public void setOrder_num(String order_num) {
        this.order_num = order_num;
    }

    public String getAdd_time() {
        return TimeFormatUtil.SF_FORMAT_E.format(new Date(Long.valueOf(add_time) * 1000));
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTotal_num() {
        return total_num;
    }

    public void setTotal_num(String total_num) {
        this.total_num = total_num;
    }

    public String getTotal_price() {
        return total_price;
    }

    public void setTotal_price(String total_price) {
        this.total_price = total_price;
    }

    public String getSxfee() {
        return sxfee;
    }

    public void setSxfee(String sxfee) {
        this.sxfee = sxfee;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
